﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MainFrm.Forms
{
    public partial class ExitDialog: Form
    {
        private Timer timer1;
        public ExitDialog(Timer timer)
        {
            InitializeComponent();
            StartPosition =  FormStartPosition.CenterScreen;
            timer1 = timer;
            buttonCancel.Focus();
        }

        private void buttonSure_Click(object sender, EventArgs e)
        {
            timer1.Stop();
            System.Environment.Exit(0);
            this.Close();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
